home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 5 / MacMania 5.toast / / Tools&Utilities / rtftohtml PPC 3.0.1 / html-trn < prev    next >
Encoding:
Text File  |  1996-06-02  |  7.8 KB  |  281 lines  |  [TEXT/R*ch]

  1. # Starting with rtftohtml 2.7, all html-trans files have a version number
  2. # The version number must appear before any other tables.
  3. .Version,4
  4.  
  5. #
  6. # Localize File name Table
  7. # Used to transform file names use as links in the RTF document
  8. # to the links used within the HTML output.
  9. # Format:
  10. # "tag"[,"regexp","regsub"]
  11. # Where tag can be
  12. # "LOWER"        - translate to lower case
  13. # "UPPER"        - translate to upper case
  14. # "ENCODE"        - encode "bad" characters as hex
  15. # "DECODE"        - decode "bad" characters from hex
  16. # "SUBSTITUTE"    - perform a regular expression style substitution
  17. #                  where "regexp" is a regular expression search pattern
  18. #                  and "regsup" is a substition pattern
  19. .LFXform
  20. # translate all special characters to %nn format
  21. "ENCODE"
  22. # strip directory from file name
  23. "SUBSTITUTE",".*%5C",""
  24. # Strip extension if it exists 
  25. "SUBSTITUTE","\.[^.]*$",""
  26. # Add a .gif extension
  27. "SUBSTITUTE","$",".gif"
  28.  
  29. # Paragraph Style Tags table
  30. # Format:
  31. #"name","starttag","endtag","col2mark","tabmark","parmark",allowtext,cannest,DeleteCol1,fold,TocStyl
  32. .PTag
  33. "Normal","","\n","\t","\t","<p>\n",1,0,0,1,0
  34. "h1","<h1>\n","</h1>\n","\t","\t","<br>\n",0,0,0,1,1
  35. "h2","<h2>\n","</h2>\n","\t","\t","<br>\n",0,0,0,1,2
  36. "h3","<h3>\n","</h3>\n","\t","\t","<br>\n",0,0,0,1,3
  37. "h4","<h4>\n","</h4>\n","\t","\t","<br>\n",0,0,0,1,4
  38. "h5","<h5>\n","</h5>\n","\t","\t","<br>\n",0,0,0,1,5
  39. "h6","<h6>\n","</h6>\n","\t","\t","<br>\n",0,0,0,1,6
  40. "ul","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,0,1,0
  41. "ul-d","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,1,1,0
  42. "ol","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,0,1,0
  43. "ol-d","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,1,1,0
  44. "dl","<dl>\n<dt>","</dl>","\n<dd>","\t","\n<dt>",1,1,0,1,0
  45. "TERM","<dl>\n<dt>","</dl>","\t","\t","\n<dt>",1,1,0,1,0
  46. "DEF","<dd>","","\t","\t","\n<br>",1,1,0,1,0
  47. "dir","<dir>\n<li>","</dir>","\n<li>","\n<li>","\n<li>",0,1,0,1,0
  48. "menu","<menu>\n<li>","</menu>\n","\n<li>","\n<li>","\n<li>",0,1,0,1,0
  49. "address","<address>","</address>\n","\t","\t","<br>\n",1,0,0,1,0
  50. "pre","\n<pre>\n","\n</pre>\n","\t","\t","\n",0,0,0,0,0
  51. "blockquote","<blockquote>","</blockquote>","\t","\t","\n",1,0,0,1,0
  52. "hr","<hr>","","","","",1,0,0,1,0
  53. # This is a required entry; tables will be formatted with this entry
  54. "_Table","","","\t","\t","\n",1,1,0,0,0
  55. "_Caption","\n","\n","\t","\t","<br>\n",1,0,0,1,0
  56.  
  57. # Text STyle Tags table
  58. # Format
  59. # "name","Starttag","Endtag"
  60. .TTag
  61. "b","<b>","</b>"
  62. "i","<i>","</i>"
  63. "u","<u>","</u>"
  64. "em","<em>","</em>"
  65. "cite","<cite>","</cite>"
  66. "tt","<tt>","</tt>"
  67. "strong","<strong>","</strong>"
  68. "code","<code>","</code>"
  69. "samp","<samp>","</samp>"
  70. "kbd","<kbd>","</kbd>"
  71. "var","<var>","</var>"
  72. "dfn","<dfn>","</dfn>"
  73. "sup","<sup>","</sup>"
  74. "sub","<sub>","</sub>"
  75. "strike","<strike>","</strike>"
  76. "Size18","<font size=18>","</font>"
  77.  
  78. # Text Match Table
  79. # Format:
  80. # "Font",FontSize,Match,Mask,"TextStyleName"
  81. # "" is don't care for fonts
  82. # 0 is don't care for font size
  83. # Special names for TextStyleName
  84. # _Discard - text will not be output
  85. # _Name    - text will be used for an named anchor
  86. # _HRef    - text is an href
  87. # _Hot     - end of this text marks the end of hot text
  88. # _Literal - text is sent thorough without any translation
  89. # The order of bits for match and mask is:
  90. #    v^bDWUHACSOTIB - Bold
  91. #    v^bDWUHACSOTI - Italic
  92. #    v^bDWUHACSOT - StrikeThrough
  93. #    v^bDWUHACSO - Outline
  94. #    v^bDWUHACS - Shadow
  95. #    v^bDWUHAC - SmallCaps
  96. #    v^bDWUHA - AllCaps
  97. #    v^bDWUH - Hidden
  98. #    v^bDWU - Underline
  99. #    v^bDW - Word Underline
  100. #    v^bD - Dotted Underline
  101. #    v^b - Double Underline
  102. #    v^ - SuperScript
  103. #    v - SubScript
  104. #    v^bDWUIACSOTIB
  105. .TMatch
  106. #
  107. # First do specials, because they are higher priority than other matches
  108. # double-underline/not hidden -> hot text
  109. # double-underline/hidden -> href
  110. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  111. "",0,00100000000000,00100010000000,"_Hot"
  112. "",0,00100010000000,00100010000000,"_HRef"
  113.  
  114. # hidden/shadow -> literal
  115. # hidden/strikethru -> literal
  116. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  117. "",0,00000010010000,00000010010000,"_Literal"
  118. "",0,00000010000100,00000010000100,"_Literal"
  119.  
  120. # hidden/shadow -> literal
  121. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  122. "",0,00000010000100,00000010000100,"_Literal"
  123.  
  124. # hidden/outline -> Name
  125. # hidden/SuperScript -> Name
  126. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  127. "",0,00000010001000,00000010001000,"_Name"
  128. "",0,01000010000000,01000010000000,"_Name"
  129.  
  130. # hidden/all other hiddens are discarded
  131. "",0,00000010000000,00000010000000,"_Discard"
  132.  
  133. # All other Superscripts just superscripts
  134. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  135. "",0,01000000000000,01000000000000,"sup"
  136.  
  137. # just subscripts
  138. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  139. "",0,10000000000000,10000000000000,"sub"
  140.  
  141. # Regular matches - You can have multiple of these active
  142.  
  143. # monospace fonts -> tt
  144. "Courier",0,00000000000000,00000000000000,"tt"
  145. "Courier New",0,00000000000000,00000000000000,"tt"
  146. "Monaco",0,00000000000000,00000000000000,"tt"
  147.  
  148. # bold -> bold
  149. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  150. "",0,00000000000001,00000000000001,"b"
  151.  
  152. # italic/underline -> cite, italic/nounderline -> italic
  153. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  154. "",0,00000000000010,00000100000010,"i"
  155. "",0,00000100000010,00000100000010,"cite"
  156.  
  157. # any underline without italic -> underline
  158. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  159. "",0,00010000000000,00111100000010,"u"
  160. "",0,00001000000000,00111100000010,"u"
  161. "",0,00000100000000,00111100000010,"u"
  162. "",0,00100000000000,00111100000010,"u"
  163.  
  164. # strikethrough -> strikethrough
  165. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  166. "",0,00000000000100,00000000000100,"strike" 
  167.  
  168. # outline,shadow -> em
  169. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  170. "",0,00000000001000,00000000001000,"em"
  171. "",0,00000000010000,00000000010000,"em"
  172.  
  173. # size 18
  174. #"",36,0,0,"Size18"
  175.  
  176. # Format:
  177. # "Paragraph Style",NestLevel,"ParagraphStyleName"
  178. # First Entry is the default if no style match. Should be level 0 
  179. # point to a Paragraph style with no markup
  180. .PMatch
  181. "Normal",0,"Normal"
  182. "table-heading",0,"Normal"
  183. "TableElement",0,"Normal"
  184. # This is a required entry; tables will be formatted with this entry
  185. "_Table",0,"_Table"
  186. "heading 1",0,"h1"
  187. "heading 2",0,"h2"
  188. "heading 3",0,"h3"
  189. "heading 4",0,"h4"
  190. "heading 5",0,"h5"
  191. "heading 6",0,"h6"
  192. "ol",0,"ol"
  193. "ol 1",1,"ol"
  194. "ol 2",2,"ol"
  195. "ol 3",3,"ol"
  196. "ol 4",4,"ol"
  197. "ol 5",5,"ol"
  198. "ul",0,"ul"
  199. "ul 1",1,"ul"
  200. "ul 2",2,"ul"
  201. "ul 3",3,"ul"
  202. "ul 4",4,"ul"
  203. "ul 5",5,"ul"
  204. "numbered list",0,"ol-d"
  205. "numbered list 1",1,"ol-d"
  206. "numbered list 2",2,"ol-d"
  207. "numbered list 3",3,"ol-d"
  208. "numbered list 4",4,"ol-d"
  209. "numbered list 5",5,"ol-d"
  210. "bullet list",0,"ul-d"
  211. "bullet list 1",1,"ul-d"
  212. "bullet list 2",2,"ul-d"
  213. "bullet list 3",3,"ul-d"
  214. "bullet list 4",4,"ul-d"
  215. "bullet list 5",5,"ul-d"
  216. "dir",0,"dir"
  217. "dir 1",1,"dir"
  218. "dir 2",2,"dir"
  219. "dir 3",3,"dir"
  220. "dir 4",4,"dir"
  221. "dir 5",5,"dir"
  222. "small gloss",0,"dl"
  223. "small gloss 1",1,"dl"
  224. "small gloss 2",2,"dl"
  225. "small gloss 3",3,"dl"
  226. "small gloss 4",4,"dl"
  227. "small gloss 5",5,"dl"
  228. "glossary",0,"dl"
  229. "glossary 1",1,"dl"
  230. "glossary 2",2,"dl"
  231. "glossary 3",3,"dl"
  232. "glossary 4",4,"dl"
  233. "glossary 5",5,"dl"
  234. "menu",0,"menu"
  235. "menu 1",1,"menu"
  236. "menu 2",2,"menu"
  237. "menu 3",3,"menu"
  238. "menu 4",4,"menu"
  239. "menu 5",5,"menu"
  240. "pre",0,"pre"
  241. "blockquote",0,"blockquote"
  242. "address",0,"address"
  243. "hr",0,"hr"
  244. # the following paragraph styles will be discarded
  245. "toc 1",0,"_Discard"
  246. "toc 2",0,"_Discard"
  247. "toc 3",0,"_Discard"
  248. "toc 4",0,"_Discard"
  249. "toc 5",0,"_Discard"
  250. "toc 6",0,"_Discard"
  251. "TOC heading 1",0,"_Discard"
  252. "TOC heading 2",0,"_Discard"
  253. "title 1",0,"_Discard"
  254. "table of figures",0,"_Discard"
  255. "caption",0,"_Caption"
  256. "index 1",0,"_Discard"
  257. "index 2",0,"_Discard"
  258. "index 3",0,"_Discard"
  259. "index 4",0,"_Discard"
  260. "index 5",0,"_Discard"
  261. "TERM",0,"TERM"
  262. "DEF",1,"DEF"
  263. "TERM 1",1,"TERM"
  264. "DEF 1",2,"DEF"
  265. "TERM 2",2,"TERM"
  266. "DEF 2",3,"DEF"
  267. "HTML",0,"_Literal"
  268. "footnote text",0,"Normal"
  269. "banner1",0,"Normal"
  270. "header",0,"Normal"
  271. "banner2",0,"Normal"
  272. #"Title",0,"h1"
  273. "Title",0,"Normal"
  274. "Normal Indent",0,"blockquote"
  275. "Code",0,"pre"
  276. "TableSpace",0,"Normal"
  277. "TableRow",0,"Normal"
  278. "TableSubHead",0,"h3"
  279. "Normal Note",0,"Normal"
  280.